package com.aim.nada;

import java.util.Hashtable;

import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapSerializationEnvelope;



public class GetVehiclesByVinRequest extends BaseObject {
	public String Token;
	public int Period;
	public String VehicleType;
	public String Vin;

	public Object getProperty(int index) {
		if (index == 0) {
			return Token;
		} else if (index == 1){
			return Period;
		}
		else if (index == 2)
		{
			return VehicleType;
		}
		else
		{
			return Vin;
		}
	}

	public int getPropertyCount() {
		return 4;
	}

	public void getPropertyInfo(int index, Hashtable properties,
			PropertyInfo info) {
		info.type = PropertyInfo.STRING_CLASS;
		if (index == 0) {
			info.name = "Token";
		} else if (index == 1){
			info.name = "Period";
		}
		else if (index == 2)
		{
			info.name = "VehicleType";
		}
		else
		{
			info.name = "Vin";
		}
	}

	public void setProperty(int index, Object value) {
		throw new RuntimeException("Request.setProperty is not implemented yet");
	}

	public void register(SoapSerializationEnvelope envelope) {
		envelope.addMapping(NAMESPACE, "GetVehiclesByVinRequest", this.getClass());
	}
}